<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .header {
           width: 100%;
           height: 50px;
           background: #aaa;
           padding-left: 20px;
        }
        .header-left{
            display: inline-block;
            margin-right: 400px;
        }
        .header-right{
            display: inline-block;
            list-style: none;
            padding: 0;
        }
        .header-right li{
            display: inline-block;
            padding: 0 10px;
            line-height: 25px;
        }
        .header-right li+li {
            border-left: 1px solid #ddd;
          
        }
        .header-right li:hover {
            color: red;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="header-left">您好，欢迎光临</div>
         <ul class="header-right">
           <li>测试文字</li>
           <li>测试文字</li>
           <li>测试文字</li>
           <li>测试文字</li>
           <li>测试文字</li>
         </ul>
    </div>
</body>
</html>